package gui;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

public class MainFrameKeyListener implements KeyListener {

	@Override
	public void keyTyped(KeyEvent e) {}

	@Override
	public void keyPressed(KeyEvent e) {}

	@Override
	public void keyReleased(KeyEvent e) {
		int key = e.getKeyCode();
	    if (key == KeyEvent.VK_ENTER) {
	    	MainFrame.getInstance().sendCurrentMessage();
	    }		
	}

}
